﻿using System.Reflection;
using System.Web.Mvc;

namespace StudyTracker.Web.Helpers
{
	public static class UrlHelperExtensions
	{
		public static string AutoVersion(this UrlHelper helper, string relativePath)
		{
			return string.Format("{0}?q={1}", helper.Content(relativePath), Assembly.GetExecutingAssembly().GetName().Version);
		}
	}
}